<?

$listrooms=array();
$sql_select="select * from ".$GLOBALS['first_table']."tbluser where iUserId=".$GLOBALS['userid']." or iParentId=".$GLOBALS['userid'];

$rs=$dbsql->query($sql_select);

while($result=$dbsql->fetch_array($rs))
{
	$listrooms[]=$result;
}

?>